/*
** my_strncmp.c for Jour_06 in /u/all/noret_a/rendu/piscine/Jour_06/ex_06
**
** Made by christophe noret
** Login   <noret_a@epitech.net>
**
** Started on  Tue Oct  9 23:09:58 2012 christophe noret
** Last update Tue Oct  9 23:11:44 2012 christophe noret
*/

int     my_strncmp(char *s1, char *s2, int n)
{
  int   i;

  i = 0;
  while (s1[i] && s2[i] && s1[i] == s2[i] && i < n)
    i++;
  if (i == n)
    return (0);
  else
    return (s1[i] - s2[i]);
}
